﻿// See https://aka.ms/new-console-template for more information
using MementoPattern;

//Console.WriteLine("Hello, World!");
// 备忘录模式
War3 war3 = new War3();
war3.Name = "王静安";
war3.Army = "第一军团";
war3.Hero = "wja英雄";
war3.Resource = "有很多坦克，飞机，大炮";
war3.Show();
//war3.Save();

Console.WriteLine("*******************Start******************");
war3.Army = "第二军团";
war3.Hero = "wja英雄2";
war3.Resource = "有很多战斗机、机器人军团";
war3.Show();

Console.WriteLine("******************MF*******************");
//war3.Load();
war3.Army = "第3军团";
war3.Hero = "wja英雄3";
war3.Resource = "有很多战斗机、机器人军团3";
war3.Save("MF");
war3.Save("MF");
war3.Show();

Console.WriteLine("*******************交战******************");
war3.Army = "第4军团";
war3.Hero = "wja英雄4";
war3.Resource = "有很多战斗机、机器人军团4";
war3.Save("交战");
war3.Show();

Console.WriteLine("*******************交战后******************");
war3.Army = "第5军团";
war3.Hero = "wja英雄5";
war3.Resource = "有很多战斗机、机器人军团5";
war3.Save("交战后");
war3.Show();


Console.WriteLine("*****************************");
war3.Load("MF");
war3.Show();

Console.WriteLine("*****************************");
war3.Load("交战后");
war3.Show();